home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / machserver / 1.098 / mach / ds3100.md / sysinfo.h < prev    next >
C/C++ Source or Header  |  1989-08-15  |  4KB  |  119 lines

  1. /*    @(#)sysinfo.h    4.4    (ULTRIX)    11/10/88    */
  2.  
  3. /************************************************************************
  4.  *                                    *
  5.  *            Copyright (c) 1988 by                *
  6.  *        Digital Equipment Corporation, Maynard, MA        *
  7.  *            All rights reserved.                *
  8.  *                                    *
  9.  *   This software is furnished under a license and may be used and    *
  10.  *   copied  only  in accordance with the terms of such license and    *
  11.  *   with the  inclusion  of  the  above  copyright  notice.   This    *
  12.  *   software  or  any  other copies thereof may not be provided or    *
  13.  *   otherwise made available to any other person.  No title to and    *
  14.  *   ownership of the software is hereby transferred.            *
  15.  *                                    *
  16.  *   This software is  derived  from  software  received  from  the    *
  17.  *   University    of   California,   Berkeley,   and   from   Bell    *
  18.  *   Laboratories.  Use, duplication, or disclosure is  subject  to    *
  19.  *   restrictions  under  license  agreements  with  University  of    *
  20.  *   California and with AT&T.                        *
  21.  *                                    *
  22.  *   The information in this software is subject to change  without    *
  23.  *   notice  and should not be construed as a commitment by Digital    *
  24.  *   Equipment Corporation.                        *
  25.  *                                    *
  26.  *   Digital assumes no responsibility for the use  or  reliability    *
  27.  *   of its software on equipment which is not supplied by Digital.    *
  28.  *                                    *
  29.  ************************************************************************/
  30. /*
  31.  *
  32.  *   Modification history:
  33.  *
  34.  *  9 Mar 88 -- chet
  35.  *    Created this file.
  36.  *
  37.  */
  38.  
  39. /*
  40.  *    This file contains constants used with the getsysinfo() and
  41.  *    setsysinfo() system calls.
  42.  *
  43.  *    Both of these calls are operation driven; particular
  44.  *    flavors of operation may use arguments, identifiers, flags, etc.
  45.  *    to define the actual result.
  46.  *
  47.  */
  48.  
  49. /*
  50.  *    getsysinfo() operation types
  51.  */
  52.  
  53. #define GSI_PROG_ENV    1    /* Return process compatibility mode of */
  54.                                 /* the process as defined in <sys/exec.h> */
  55.  
  56. #define GSI_MAX_UPROCS    2    /* Return the maximum number of processes */
  57.                                 /* allowed per user id */
  58.  
  59. #define    GSI_TTYP    3    /* Return the device number of the */
  60.                                 /* controlling terminal */
  61.  
  62. #define GSI_NETBLK    4    /* Return the entire netblk structure */
  63.                 /* which is used for network install */
  64.  
  65. #define GSI_BOOTDEV    5    /* Return the bootdev string */
  66.                 /* which is used for install */
  67.  
  68. #ifdef mips
  69. /*
  70.  * these return value of the flag
  71.  * that turns on/off printing the
  72.  * fixed up unaligned access message
  73.  */
  74. #define GSI_UACSYS      6       /* get system wide flag */
  75.  
  76. #define GSI_UACPARNT    7    /* get parents */
  77.  
  78. #define GSI_UACPROC     8    /* get current proc */
  79. #endif /* mips */
  80.  
  81. /*
  82.  *    setsysinfo() operation types
  83.  */
  84.  
  85. #define    SSI_NVPAIRS    1    /* Use a list of name value pairs to modify */
  86.                                 /* pre-defined system variables */
  87.  
  88. #define    SSI_ZERO_STRUCT    2    /* Zero a pre-defined system structure */
  89.  
  90. #define    SSI_SET_STRUCT    3    /* Set a pre-defined system structure to */
  91.                                 /* supplied values */
  92.  
  93. /*
  94.  *    setsysinfo() SSI_NVPAIRS variable names
  95.  */
  96.  
  97. #define    SSIN_NFSPORTMON 1    /* A boolean which determines whether */
  98.                                 /* incoming NFS traffic is originating */
  99.                                 /* at a privileged port or not */
  100.  
  101. #define    SSIN_NFSSETLOCK    2    /* A boolean which determines whether NFS */
  102.                                 /* (daemon) style file and record locking */
  103.                                 /* is enabled or not */
  104.  
  105. #define SSIN_PROG_ENV    3    /* set prog environment, BSD, SYSV, POSIX */
  106.  
  107. #ifdef mips
  108. /* see GSI_UACxxx */
  109. #define SSIN_UACSYS    4    /* set system printing on/off */
  110. #define SSIN_UACPARNT    5    /* set parent proc on/off */
  111. #define SSIN_UACPROC    6    /* set current proc on/off */
  112. #endif /* mips */
  113.  
  114. /*
  115.  *    setsysinfo() SSI_ZERO_STRUCT and SSI_SET_STRUCT structure types
  116.  */
  117.  
  118.  
  119.